package validater

import "github.com/go-playground/validator/v10"

// DefaultValidate 默认的结构体校验
func DefaultValidate(data interface{}) error {
	validate := validator.New()
	return validate.Struct(data)
}
